package books.storage.service;
import java.util.List;

import javax.ejb.Remote;

import books.storage.dto.AuthorDto;
import books.storage.exception.EntityNotFoundException;

@Remote
public interface IAuthorsManagerBean {

	/*
	 * INSERT METHODS
	 */
	public AuthorDto addNewAuthor(AuthorDto _author)
			throws EntityNotFoundException;


	/*
	 * DELETE METHODS
	 */
	public void deleteAuthor(AuthorDto _author) throws EntityNotFoundException;

	/*
	 * UPDATE METHODS
	 */
	public AuthorDto updateAuthor(AuthorDto _author)
			throws EntityNotFoundException;
	
	
	/*
	 * SEARCH METHODS
	 */
	public AuthorDto findAuthorDto(Integer _id) throws EntityNotFoundException;

	
	/*
	 * SEARCH METHODS
	 */
	public AuthorDto authorByName(String authorName);

	public List<AuthorDto> authorByBook(String bookTitle);
	
	public List<AuthorDto> findAllAuthors();
}
